package com.lora.entity;

import com.acooly.core.common.domain.AbstractEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * 开关量 Entity
 *
 * @author qiudot
 * Date: 2019-09-21 19:45:55
 */
@Entity
@Table(name = "lora_switching_value")
@Getter
@Setter
public class SwitchingValue extends AbstractEntity {

    /**
     * 设备编号
     */
    @Size(max = 64)
    private String equipmentid;

    /**
     * 原始数据
     */
    @Size(max = 5124)
    private String datastring;

    /**
     * 1路开关di量
     */
    @Size(max = 16)
    private String di1;

    /**
     * 2路开关di量
     */
    @Size(max = 16)
    private String di2;

    /**
     * 3路开关di量
     */
    @Size(max = 16)
    private String di3;

    /**
     * 4路开关di量
     */
    @Size(max = 16)
    private String di4;

    /**
     * 5路开关di量
     */
    @Size(max = 16)
    private String di5;

    /**
     * 6路开关量
     */
    @Size(max = 16)
    private String di6;

    /**
     * 7路开关di量
     */
    @Size(max = 16)
    private String di7;

    /**
     * 8路开关di量
     */
    @Size(max = 16)
    private String di8;

    /**
     * 1路开关do量
     */
    @Size(max = 16)
    private String do1;

    /**
     * 2路开关do量
     */
    @Size(max = 16)
    private String do2;

    /**
     * 3路开关do量
     */
    @Size(max = 16)
    private String do3;

    /**
     * 4路开关do量
     */
    @Size(max = 16)
    private String do4;

    /**
     * 5路开关do量
     */
    @Size(max = 16)
    private String do5;

    /**
     * 6路开关do量
     */
    @Size(max = 16)
    private String do6;

    /**
     * 7路开关do量
     */
    @Size(max = 16)
    private String do7;

    /**
     * 8路开关do量
     */
    @Size(max = 16)
    private String do8;

    private boolean alarmFlag = false;

}
